package com.example.service;

import com.example.entity.JobEntity;

import java.util.List;

public interface JobService {
    JobEntity addJob(JobEntity jobEntity) throws Exception;
    void updateJob(JobEntity jobEntity) throws Exception;
    void deleteJob(String jobName, String jobGroup) throws Exception;
    void pauseJob(String jobName, String jobGroup) throws Exception;
    void resumeJob(String jobName, String jobGroup) throws Exception;
    JobEntity getJob(String jobName, String jobGroup);
    List<JobEntity> getAllJobs();
    List<JobEntity> getJobsByGroup(String jobGroup);
}